ga.core.individual
Interface IIndividual<T extends IIndividual<T>>

Type Parameters:
T - The generic type of individuals.
All Superinterfaces:
java.lang.Cloneable, IFitness
All Known Subinterfaces:
IAgeIndividual<T>, IClusterableIndividual<T>
All Known Implementing Classes:
FurnLayoutIndividual, IndividualComparator.TestInterval, SimpleObjectIndividual

public interface IIndividual<T extends IIndividual<T>>
extends java.lang.Cloneable, IFitness

This is the interface for individuals. It extends IFitness.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
 
Fields inherited from interface ga.core.individual.IFitness
UNEVALUATED
 
Method Summary
 T clone()
          Creates a new individual that is equal to this.
 GAContext getContext()
          Getter for the GA context.
 long getId()
          Getter for the unique id.
 void initRandomly()
          Initializes the genotype randomly and resets the fitness.
 boolean isEvaluated()
          Determines if the individual has been evaluated.
 void setContext(GAContext context)
          Sets the GA context.
 
Methods inherited from interface ga.core.individual.IFitness
getFitness, setFitness
 

Method Detail

initRandomly

void initRandomly()
Initializes the genotype randomly and resets the fitness.

Since:
11.08.2012

clone

T clone()
Creates a new individual that is equal to this.

Returns:
The clone.
Since:
11.08.2012

isEvaluated

boolean isEvaluated()
Determines if the individual has been evaluated.

Returns:
true if the individual is evaluated.
Since:
11.08.2012

getId

long getId()
Getter for the unique id.

Returns:
The id.
Since:
11.08.2012

setContext

void setContext(GAContext context)
Sets the GA context.

Parameters:
context - The context
Since:
11.08.2012

getContext

GAContext getContext()
Getter for the GA context.

Returns:
context The context
Since:
11.08.2012